package com.iplant.ams.service.po.ams;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.iplant.base.utils.annotation.po.DBBasePO;
import com.iplant.base.utils.annotation.field.DBField;
import com.iplant.base.utils.general.CalendarTool;
import com.iplant.basic.service.po.bpm.BPMTaskBase;

import java.io.Serializable;
import java.util.Calendar;

@DBBasePO(TableName = "ams_purchase_request", CheckName = {"Code"},
        CodeAuto = true, CodePrefix = "PRQST_{yyyyMMdd}-", CodeNum = 4)
public class AMSPurchaseRequest extends BPMTaskBase implements Serializable {

    /**
     * 序列号
     */
    private static final long serialVersionUID = 1L;

    /**
     * 期望到货日期
     */
    @DBField
    public Calendar DTExpectedArrival = CalendarTool.getBasicDate();

    /**
     * 收件人姓名
     */
    @DBField
    public String ReceiverName = "";

    /**
     * 收件人联系电话
     */
    @DBField
    public String ReceiverPhone = "";

    /**
     * 收件地址
     */
    @DBField
    public String ReceiverAddress = "";

    /**
     * 当前审批状态
     */
    @DBField
    public int CurrentStatus = 0;

    public AMSPurchaseRequest() {
        super();
    }

    @JsonProperty("ReceiverName")
    public String getReceiverName() {
        return ReceiverName;
    }

    public void setReceiverName(String receiverName) {
        ReceiverName = receiverName;
    }

    @JsonProperty("ReceiverPhone")
    public String getReceiverPhone() {
        return ReceiverPhone;
    }

    public void setReceiverPhone(String receiverPhone) {
        ReceiverPhone = receiverPhone;
    }

    @JsonProperty("ReceiverAddress")
    public String getReceiverAddress() {
        return ReceiverAddress;
    }

    public void setReceiverAddress(String receiverAddress) {
        ReceiverAddress = receiverAddress;
    }

    @JsonProperty("DTExpectedArrival")
    public Calendar getDTExpectedArrival() {
        return DTExpectedArrival;
    }

    public void setDTExpectedArrival(Calendar DTExpectedArrival) {
        this.DTExpectedArrival = DTExpectedArrival;
    }

    @JsonProperty("CurrentStatus")
    public int getCurrentStatus() {
        return CurrentStatus;
    }

    public void setCurrentStatus(int currentStatus) {
        CurrentStatus = currentStatus;
    }
}
